package com.example.sportplay.dao;

import com.example.sportplay.bean.Money;
import com.example.sportplay.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    public User getUserByMassage(@Param("username")String username, @Param("password")String password);
//   4
    public List<User> getAllUser(@Param("username") String username,@Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public List<User> getFindAllUser(@Param("username") String username);
    public List<User> getAllUserqiangg();
    public int getUserCounts(@Param("username")String username);
    public int updateState(@Param("username")String username,@Param("state")Boolean state);
    public int addUser(User user);
    public User getUpdateUser(@Param("username")String username);
    public int editUser(User user);
    public int updaterole(@Param("carnumber")String carnumber);
    public int editUserqian(User user);

    public int editUserqianqian(User user);
    public int editUserqianqianqian(User user);
    public int jiaofeimney(Money money);

    public List<User> findme(@Param("username")String username);
    public List<User> findmebycarnumber(@Param("carnumber")String carnumber);
    public List findmestate(@Param("carnumber")String carnumber);
    public int deleteUser(@Param("username")String username);
    public int jiaofei(@Param("username")String username);
    public List<User> getuserbycarnumber(@Param("carnumber")String carnumber);
    public int insertmoney(@Param("username")String username,@Param("carnumber")String carnumber,@Param("state")String state,@Param("statemoney")String statemoney);


}
